<div class="header">
	<a href="#" class="logo"><img src="<?php echo base_url();?>application/views/front_end/images/logo.png" width="163px" height="52px" /></a>
    <div class="company"><?php echo $company->company_name; ?></div>
    <div class="lang-sitemap">
    	<!--<a href="#" class="site-map">Site map</a>-->
        <a href="<?php echo base_url();?>home/index/vietnamese"><img src="<?php echo base_url();?>application/views/front_end/images/vn.jpg" title="Vietnamese"/></a>
        <a href="<?php echo base_url();?>home/index/english"><img src="<?php echo base_url();?>application/views/front_end/images/en.jpg" title="English" /></a>
    </div>
</div>
<?php include('menu.php'); ?>
<div class="banner clb">
	<div class="news ov-h mb-10 clb">
		<div class="title-r txtB"><?php echo $this->lang->line('system_news'); ?></div>
	    <div class="box-r ul-none">
	    	<marquee height="185" scrolldelay="70" scrollamount="1" direction="up">
	    	<ul>
	    		<?php if (count($news)>0) {
	    			foreach ($news as $key => $new){
	    		?>
	        	<li><a href="<?php echo base_url();?>news/detail/<?php echo $new['id']; ?>"><?php echo $new['ten_news']; ?></a>
	        	<?php
	        		if (isset($this->session->userdata['language']) && $this->session->userdata['language']=='english'){
	        			echo date('m/d/Y', strtotime($new['createdtime']));
	        		}else {
	        			echo date('d/m/Y', strtotime($new['createdtime']));
	        		}
	        	?></li>
	            <?php }
	    		}?>

	        </ul>
	        </marquee>
	        <a href="<?php echo base_url();?>news" class="colorO view-more"><?php echo $this->lang->line('system_viewmore'); ?></a>
	    </div>
	</div>
	<div class="slider-wrapper futurico-theme">
    	<div id="slider" class="nivoSlider" style="width:751px; height:234px;">
    		<?php
			foreach ($banners as $banner){?>
        	<a href="#"><img src="<?php echo base_url (); ?>application/storage/images/<?php echo $banner->file_name; ?>" width="751px" height="234px"/></a>
        	<?php } ?>

        </div>
    </div>



</div>



<div class="service box ul-none ov-h clb">
	<div class="service-c" id="service">
    	<ul>
    		<?php
    			foreach ($categories as $cat){ ?>
				<li><a href="<?php echo base_url();?>categories/detail/<?php echo $cat['id']; ?>">
				<div style="width:312px; height:107px">
				<img src="<?php echo base_url (); ?>application/storage/images/<?php echo $cat['file_name']; ?>" width="312" height="107" />
				</div>
				<span>
					<?php
						$cat_name='name'.$this->session->userdata['data_language'];;
						echo $cat[$cat_name];
					?>
				</span></a></li>
    		<?php }?>
        </ul>
    </div>
</div>